const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token
  name: state => state.user.userInfo.username, // 用户名字
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  routes: state => state.permission.routes, // 导出当前的路由
  roles: state => state.user.userInfo.roles,
  departmentName: state => state.user.userInfo.departmentName,
  companyName: state => state.user.userInfo.companyName,
}
export default getters
